<?php

class DateHelper
{

    //convert from db date to your format
    public static function convertDate($format, $date)
    {
        if ($date != null)
        {
            $time = strtotime($date);
            if ($time !== false)
            {
                return date($format, $time);
            }
        }
        return '';
    }

}

?>
